﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaoCaoSo16_Update.aspx.cs"
    Inherits="AIC_PN.BaoCaoSo16_Update" MasterPageFile="~/Site1.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">

    <script type="text/javascript">
        $(function() {
            $(".calendar").datepicker();
        });
    </script>

    <div id="Div1" class="FormTitleA3" runat="server">
        <p class="TextTitle">
            <label id="lblFormName" runat="server" class="lblFormName">
                Cập nhật báo cáo
            </label>
            <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
                Height="24px" OnClick="ImageButton1_Click" />
        </p>
    </div>
    <div class="FormMainA3">
        <div class="labelNotice">
            <font color="black">Chọn kỳ báo cáo : </font>
            <asp:DropDownList ID="cboKyBaoCao" runat="server" AutoPostBack="true" Width="300"
                CssClass="ControlDropdown" OnSelectedIndexChanged="cboKyBaoCao_SelectedIndexChanged">
            </asp:DropDownList>
            <%--<asp:Button ID="btnLuu" Visible="false" runat="server" Text="Lưu lại" ToolTip="Lưu tên báo cáo, người lập báo cáo, người ký báo cáo"
                CssClass="cmdBtn" OnClick="btnLuu_Click" />--%>
        </div>
        <table style="width: 100%; padding: 5px;">
            <tr>
                <td align="left" runat="server" id="tdTenDonVi">
                    Tên đơn vị
                </td>
                <td align="right">
                    <%--Hà Nội, Ngày
                    <asp:TextBox ID="txtNgayBaoCao" runat="server" CssClass="calendar"></asp:TextBox>--%>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <b>QUẢN LÝ KẾT QUẢ HOẠT ĐỘNG VẬN ĐỘNG TIẾT KIỆM </b>
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnl" runat="server" CssClass="panelA3">
            <asp:GridView ID="grvData" CssClass="ListTable" ShowHeader="false" runat="server"
                Width="100%" AllowSorting="True" AutoGenerateColumns="False" OnRowCommand="grvData_RowCommand"
                OnRowDataBound="grvData_RowDataBound" OnRowEditing="grvData_RowEditing" OnPageIndexChanging="grvData_PageIndexChanging"
                DataKeyNames="ID" OnRowCancelingEdit="grvData_RowCancelingEdit" OnRowCreated="grvData_RowCreated">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TenDV" ReadOnly="true"></asp:BoundField>
                    <asp:BoundField DataField="F2" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F3" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F4" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F5" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F6" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F7" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F8" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="F9" DataFormatString="{0:0,0}">
                        <ItemStyle Width="90px"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Sửa">
                        <HeaderStyle Wrap="False"></HeaderStyle>
                        <ItemStyle Wrap="False" Width="60px"></ItemStyle>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgEdit" runat="server" ImageUrl="images/edit.gif" ToolTip="Sửa"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="Edit">
                            </asp:ImageButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:ImageButton ID="imgUpdate" runat="server" ImageUrl="images/approval.png" ToolTip="Cập nhật"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="<%# AIC_PN.MyConst.Action.Approve %>">
                            </asp:ImageButton>
                            <asp:ImageButton ID="imgCancel" runat="server" CommandName="Cancel" ImageUrl="images/cancel.png"
                                CommandArgument='<%# Bind("ID") %>' />
                        </EditItemTemplate>
                        <ItemStyle Width="70px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
        <%--<p style="font-family: Times New Roman !important; font-size: 20px !important; color: #7D0909;">
            <b>Ghi chú :</b></p>
        <asp:TextBox ID="txtGhiChu" runat="server" Width="100%" TextMode="MultiLine" Rows="5"> </asp:TextBox>--%>
    </div>
</asp:Content>
